package com.fly.estore.service;

import com.fly.estore.domain.AccountInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * Created by Fly on 2016/3/25.
 */
public interface AccountService {

    public int create(AccountInfo accountInfo);

    public int update(AccountInfo accountInfo);

    public int save(AccountInfo accountInfo);

    public int deleteById(final String accountId);

    public int changePassword(String oldPassword, String newPassword, String accountId);

    public AccountInfo getById(String accountId);

    public AccountInfo getByAccountNameAndPwd(String accountName, String password);

    public void signIn(HttpServletRequest request, HttpServletResponse response, String accountName, String password);

    public List<AccountInfo> getList();

}
